package com.health.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Version: V1.0
 */
@RestController
public class IndexController {

    @Autowired
    HttpServletResponse response;

    @GetMapping("index")
    public Map index() {

        Map map = new HashMap();
        map.put("project", "传智健康");

        return map;
    }


    @GetMapping("test")
    public String test() {
//        response.setContentType("text/html;charset=utf-8");
        return "传智健康";
    }
}
